package com.hejl.function;


import java.util.function.Function;

/**
 * @author Hejl
 * @version 1.0
 * @description
 * @className RecruitServiceFunction
 * @date 2025/6/11 11:16
 */
public class RecruitServiceFunction implements Function<RecruitServiceFunction.Request, RecruitServiceFunction.Response> {
    @Override
    public Response apply(Request request) {
        String position="未知";
        if(request.name.contains("何家乐")){
            position="Java工程师";
        }
        return new Response(position);
    }

    public record Request(String name){ }
    public record Response(String position){ }

}